<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="index.css">
</head>
<body>
<script>
   var p=prompt('几月份');
    if(p>=5&&p<=10){
        var sex=prompt("选择头等舱还是经济舱");
        if(sex=="头等舱"){
            console.log("2000")
        }else{
            console.log("800")
        }
    }else {
        var sex=prompt("选择头等舱还是经济舱");
        if(sex=="头等舱"){
            console.log("800")
        }else{
            console.log("200")
        }
    }
</script>
</body>
</html>